-------------- AABB Overlap -------------- This requires each table passed into this function to have values for the following; x - current x position y - current y position h - object height w - object width AABB collisions work best with purely rectangular objects. For more advanced collision methods, check our demoman.net forsome excellent tutorials on the subject. function aabbOverlap(a,b) return ((a.x+a.w > b.x) and (a.x < b.x+b.w)) and ((a.y+a.h > b.y) and (a.y < b.y+b.h)) end